/***
 * @author sa0ChunLuyu
 * @date 2019/11/1 8:21 下午
 */
const setRem = (width) => document.documentElement.style.fontSize = document.documentElement.clientWidth / (width / 100) + 'px';

export default (width = 750) => {
    setRem(width);
    window.addEventListener('resize', setRem);
}
